import VueRouter from 'vue-router'
import index from './pages/index.vue' //vue文件组件
import my from './pages/my.vue'
import list from './pages/list.vue'
import help from './pages/help.vue'
const routes = [{
        path: '/',
        component: index
    },
    {
        path: '/my',
        component: my
    },
    {
        path: '/help',
        component: help
    },
    {
        path: '/list',
        component: list
    }
]
var router = new VueRouter({
    routes: routes
})
export default router